package com.gzhryc.net_marketing.supplier.pay.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.net_marketing.supplier.pay.dao.enums.SupplierBusinessOrderLogEnum;
import com.gzhryc.shared_device.base.enums.EOperatorType;

import java.util.Date;

@Table(name = "supplier_business_order_log")
public class SupplierBusinessOrderLog {

    @Id
    protected Long id;

    @Column(name="trade_no",notNull = true,length = 32)
    protected String tradeNo;

    @Column(name = "program_type",notNull = true,note = "操作程序")
    private String programType;
    
    @Column(name = "program_type_name",notNull = true,note = "操作程序")
    private String programTypeName;

    @Column(name = "operate_content",notNull = true,length = 128,note = "操作内容")
    protected String operateContent;

    @Column(name = "operator_type",notNull = true,note = "操作者类型")
    private Integer operatorType;   //操作者类型

    @Column(note = "操作者信息")
    private String operator;

    @Column(name = "operate_state",notNull = true,note = "操作状态")
    private Integer operateState;

    @Column(name = "operate_error",length = 1024,note = "操作错误信息")
    private String operateError;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProgramType() {
        return programType;
    }

    public void setProgramType(String programType) {
        this.programType = programType;
    }

    public String getProgramTypeName() {
		return programTypeName;
	}

	public void setProgramTypeName(String programTypeName) {
		this.programTypeName = programTypeName;
	}

	public String getOperateContent() {
        return operateContent;
    }

    public void setOperateContent(String operateContent) {
        this.operateContent = operateContent;
    }

    public Integer getOperatorType() {
        return operatorType;
    }

    public void setOperatorType(Integer operatorType) {
        this.operatorType = operatorType;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getOperateState() {
        return operateState;
    }

    public void setOperateState(Integer operateState) {
        this.operateState = operateState;
    }

    public String getOperateError() {
        return operateError;
    }

    public void setOperateError(String operateError) {
        this.operateError = operateError;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getOperatorTypeName(){
        return EOperatorType.note(this.operatorType);
    }

    public String getOperateStateName(){
        return SupplierBusinessOrderLogEnum.OperateState.note(this.operateState);
    }
}
